﻿@model ProjectManagement.Models._Project
           
<fieldset style="width: 700px;">
    <legend>新建项目</legend>
    <table class="noline">
        <tr>
            <td>@Html.LabelFor(x=>x.Name)</td>
            <td>
                @Html.TextBoxFor(x=>x.Name, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.Name)
            </td>
            <td>@Html.LabelFor(x=>x.ProjectDisplayName)</td>
            <td>
                @Html.TextBoxFor(x=>x.ProjectDisplayName, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.ProjectDisplayName)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.Manager)</td>
            <td>
                @Html.TextBoxFor(x=>x.Manager, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.Manager)
            </td>
            <td>@Html.LabelFor(x=>x.ProjectCode)</td>
            <td>
                @Html.TextBoxFor(x=>x.ProjectCode, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.ProjectCode)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.Product)</td>
            <td>
                @Html.TextBoxFor(x=>x.Product, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.Product)
            </td>
            <td>@Html.LabelFor(x=>x.IsActived)</td>
            <td>
              @Html.CheckBoxFor(x=>x.IsActived)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.StartDate)</td>
            <td>
                @Html.EditorFor(x=>x.StartDate, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.StartDate)
            </td>
            <td>@Html.LabelFor(x=>x.EndDate)</td>
            <td>
                @Html.EditorFor(x=>x.EndDate, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.EndDate)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.ConferenceStartDate)</td>
            <td>
                @Html.EditorFor(x=>x.ConferenceStartDate, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.ConferenceStartDate)
            </td>
            <td>@Html.LabelFor(x=>x.ConferenceEndDate)</td>
            <td>
                @Html.EditorFor(x=>x.ConferenceEndDate, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.ConferenceEndDate)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.Target)</td>
            <td>
                @Html.TextBoxFor(x=>x.Target, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.Target)
            </td>
            <td>@Html.LabelFor(x=>x.TeamLeader)</td>
            <td>
                @Html.TextBoxFor(x=>x.TeamLeader, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.TeamLeader)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.Location)</td>
            <td>
                @Html.TextBoxFor(x=>x.Location, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.Location)
            </td>
            <td>@Html.LabelFor(x=>x.Others)</td>
            <td>
                @Html.TextBoxFor(x=>x.Others, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.Others)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.AreaID)</td>
            <td>
                @Html.DropDownListFor(x=>x.AreaID,Model.GetAreaSelectListItems(),"请选择......", new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.AreaID)
            </td>
            <td>@Html.LabelFor(x=>x.Sequence)</td>
            <td>
                @Html.Telerik().IntegerTextBoxFor(model => model.Sequence).InputHtmlAttributes(new { style = "width: 165px" })<br />
                @Html.ValidationMessageFor(x=>x.Sequence)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.ProjectTypeID)</td>
            <td>
                @Html.DropDownListFor(x=>x.ProjectTypeID,Model.GetProjectSelectListItems(),"请选择项目类型", new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.ProjectTypeID)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.Description)</td>
            <td colspan="3">
                @Html.TextAreaFor(x=>x.Description, new { rows="4" ,cols="62"})<br />
                @Html.ValidationMessageFor(x=>x.Description)
            </td>
        </tr>
    </table>
</fieldset>

<style>
    .noline{width:100%;}
     .noline,.noline tr,.noline td{border: 0;padding:2px;}
</style>